package com.learn.mybatis.mapper;

import com.learn.mybatis.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author mzy
 * @create 2022-12-09 11:36
 */
public interface EmployeeMapper {
    List<Emp> selectEmpByCondition(Emp condition);

    void updateConditional(Emp condition);

    List<Emp> selectEmpByConditionTrim(Emp condition);

    List<Emp> selectEmpByChooseCondition(Emp condition);

    void batchInsert(@Param("empList") List<Emp> empList);

    void batchUpdate(@Param("empList") List<Emp> empList);
}
